goldstein2
February 15th, 2016, 12:34 AM
Hello,
I'm having a trouble to mount partition(s) on my custom made Ubuntu Live system. The following image has been generated by xorriso command and its
-append_partition command option:
Disk /dev/sdb: 14.9 GiB, 16008609792 bytes, 31266816 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5fabc9af
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 3002879 3002880 1.4G 0 Empty
/dev/sdb2 9492 14035 4544 2.2M ef EFI (FAT-12/16/32)
/dev/sdb3 3002880 3102879 100000 48.8M b W95 FAT32
When using dd command to transfer this image to USB drive I have no trouble to access/mount, read and write to third partition on the USB stick using a separate
Linux system. USB also boots perfectly into the custom Ubuntu system. However, my only problem is the I cannot access /dev/sdb3 within the custom
Ubuntu Live system. Every attempt to mount this partition results in:
mount /dev/sdb3 /mnt/
mount: /dev/sdb3 is already mounted or /mnt busy
Here are all partitions as seen by the live system where the sda is my local disk and sdb is the actual USB stick with custom ubuntu image on it used to boot
the system:
## blkid -o list
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/loop0 squashfs /rofs
/dev/sda1 xfs (not mounted) e29ab5aa-f4ed-4b26-8e1a-f85eec483874
/dev/sda2 crypto_LUKS (not mounted) 7d2cf5fb-d75b-4e82-af88-2bfd642a3875
/dev/sda3 crypto_LUKS (not mounted) a03eb795-16bd-4f6b-8ed3-54540d9df3a5
/dev/sdb1 iso9660 ISOIMAGE (in use) 2016-02-15-02-09-35-00
/dev/sdb2 vfat (in use) 95A5-9B60
/dev/sdb3 vfat (in use) EBBE-A10B
The system output clearly states that /dev/sdbX is in use. Looking further I found that the entire block device /dev/sdb is mounted under /cdrom as iso9660
filesystem:
# findmnt
TARGET SOURCE FSTYPE OPTIONS
/ /cow overlay rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs rw,mode=755
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup
rw,nosuid,nodev,noexec,relatime,xattr,release_agen t=/lib/systemd/systemd-cgroups-agent,name=systemd
│ │ ├─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
│ │ ├─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_child ren
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
│ │ ├─/sys/fs/cgroup/hugetlb cgroup cgroup
rw,nosuid,nodev,noexec,relatime,hugetlb,release_ag ent=/run/cgmanager/agents/cgm-release-agent.hugetlb
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup
rw,nosuid,nodev,noexec,relatime,perf_event,release _agent=/run/cgmanager/agents/cgm-release-agent.perf_event
│ │ └─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent =/run/cgmanager/agents/cgm-release-agent.pids
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/firmware/efi/efivars efivarfs efivarfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/fuse/connections fusectl fusectl rw,relatime
│ └─/sys/kernel/debug debugfs debugfs rw,relatime
│ └─/sys/kernel/debug/tracing tracefs tracefs rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxp roto=5,direct
├─/dev udev devtmpfs rw,nosuid,relatime,size=4013296k,nr_inodes=1003324 ,mode=755
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode= 000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev
│ ├─/dev/mqueue mqueue mqueue rw,relatime
│ └─/dev/hugepages hugetlbfs hugetlbfs rw,relatime
├─/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=805532k,mode=755
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
│ ├─/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
│ └─/run/user/999 tmpfs tmpfs rw,nosuid,nodev,relatime,size=805532k,mode=700,uid =999,gid=999
│ └─/run/user/999/gvfs gvfsd-fuse fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=999,group_id=999
├─/cdrom /dev/sdb iso9660 ro,noatime
├─/rofs /dev/loop0 squashfs ro,noatime
└─/tmp tmpfs tmpfs rw,nosuid,nodev,relatime
The reason I have created additional partitions is to have a persistent disk space on my USB Ubuntu live system.
Any help or suggestions on how to access /dev/sdb3within a live system would be appreciated. Eventually, I would like the /dev/sdb3 partition to be mounted
automatically during the system boot.
thank you
I'm having a trouble to mount partition(s) on my custom made Ubuntu Live system. The following image has been generated by xorriso command and its
-append_partition command option:
Disk /dev/sdb: 14.9 GiB, 16008609792 bytes, 31266816 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5fabc9af
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 3002879 3002880 1.4G 0 Empty
/dev/sdb2 9492 14035 4544 2.2M ef EFI (FAT-12/16/32)
/dev/sdb3 3002880 3102879 100000 48.8M b W95 FAT32
When using dd command to transfer this image to USB drive I have no trouble to access/mount, read and write to third partition on the USB stick using a separate
Linux system. USB also boots perfectly into the custom Ubuntu system. However, my only problem is the I cannot access /dev/sdb3 within the custom
Ubuntu Live system. Every attempt to mount this partition results in:
mount /dev/sdb3 /mnt/
mount: /dev/sdb3 is already mounted or /mnt busy
Here are all partitions as seen by the live system where the sda is my local disk and sdb is the actual USB stick with custom ubuntu image on it used to boot
the system:
## blkid -o list
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/loop0 squashfs /rofs
/dev/sda1 xfs (not mounted) e29ab5aa-f4ed-4b26-8e1a-f85eec483874
/dev/sda2 crypto_LUKS (not mounted) 7d2cf5fb-d75b-4e82-af88-2bfd642a3875
/dev/sda3 crypto_LUKS (not mounted) a03eb795-16bd-4f6b-8ed3-54540d9df3a5
/dev/sdb1 iso9660 ISOIMAGE (in use) 2016-02-15-02-09-35-00
/dev/sdb2 vfat (in use) 95A5-9B60
/dev/sdb3 vfat (in use) EBBE-A10B
The system output clearly states that /dev/sdbX is in use. Looking further I found that the entire block device /dev/sdb is mounted under /cdrom as iso9660
filesystem:
# findmnt
TARGET SOURCE FSTYPE OPTIONS
/ /cow overlay rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs rw,mode=755
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup
rw,nosuid,nodev,noexec,relatime,xattr,release_agen t=/lib/systemd/systemd-cgroups-agent,name=systemd
│ │ ├─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
│ │ ├─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_child ren
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
│ │ ├─/sys/fs/cgroup/hugetlb cgroup cgroup
rw,nosuid,nodev,noexec,relatime,hugetlb,release_ag ent=/run/cgmanager/agents/cgm-release-agent.hugetlb
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup
rw,nosuid,nodev,noexec,relatime,perf_event,release _agent=/run/cgmanager/agents/cgm-release-agent.perf_event
│ │ └─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent =/run/cgmanager/agents/cgm-release-agent.pids
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/firmware/efi/efivars efivarfs efivarfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/fuse/connections fusectl fusectl rw,relatime
│ └─/sys/kernel/debug debugfs debugfs rw,relatime
│ └─/sys/kernel/debug/tracing tracefs tracefs rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxp roto=5,direct
├─/dev udev devtmpfs rw,nosuid,relatime,size=4013296k,nr_inodes=1003324 ,mode=755
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode= 000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev
│ ├─/dev/mqueue mqueue mqueue rw,relatime
│ └─/dev/hugepages hugetlbfs hugetlbfs rw,relatime
├─/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=805532k,mode=755
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
│ ├─/run/cgmanager/fs cgmfs tmpfs rw,relatime,size=100k,mode=755
│ └─/run/user/999 tmpfs tmpfs rw,nosuid,nodev,relatime,size=805532k,mode=700,uid =999,gid=999
│ └─/run/user/999/gvfs gvfsd-fuse fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=999,group_id=999
├─/cdrom /dev/sdb iso9660 ro,noatime
├─/rofs /dev/loop0 squashfs ro,noatime
└─/tmp tmpfs tmpfs rw,nosuid,nodev,relatime
The reason I have created additional partitions is to have a persistent disk space on my USB Ubuntu live system.
Any help or suggestions on how to access /dev/sdb3within a live system would be appreciated. Eventually, I would like the /dev/sdb3 partition to be mounted
automatically during the system boot.
thank you