Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #200508
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Permission issues - operator error? |
| Date | 2018-09-23 20:40 +0200 |
| Message-ID | <wBhst-4aS-1@gated-at.bofh.it> (permalink) |
| References | (7 earlier) <wBcCu-1lU-15@gated-at.bofh.it> <wBcVP-1sh-3@gated-at.bofh.it> <wBdoS-1Ry-11@gated-at.bofh.it> <wBeEi-2wn-11@gated-at.bofh.it> <wBh97-44n-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 9/23/18 11:18 AM, Richard Owlett wrote: > Is this not creating a partition? >> root@debian8-6:/home/richard# mkfs.ext4 root_owner=1000:1000 -L >> 2018Sept23tst1 /dev/sdb1 No. The "mkfs.ext4" command creates a file system on a pre-existing device or partition (e.g. /dev/sdb1). > I want to use CLI to take a USB connected drive from a known state > [i.e. dd if=/dev/zero ...] to an ext4 partitioned device I use dd(1) to erase devices, as you already did. Erasing the first megabyte and the last megabyte should meet your needs. I use parted(8) to create partition tables and to create partitions. Creating an MS-DOS partition table and creating one primary partition using 100% of the available space should meet your needs. I use mkfs(8) (or a file system-specific sub-command) to create file systems, as you already tried. 'man mkfs.ext' redirects to mke2fs(8); that should meet your needs. After you have done the above steps, you will need to create a mount point using mkdir(1), and then mount the file system using mount(8). > which presents > itself as owned by 'richard' of group 'richard'. Once the file system is mounted, it may or may not be possible to change the owner and group using chown(1). (I typically create a sub-directory named after the user, and change the owner and group of that sub-directory.) David
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Permission issues - operator error? Richard Owlett <rowlett@cloud85.net> - 2018-09-22 15:40 +0200
Re: Permission issues - operator error? Dan Purgert <dan@djph.net> - 2018-09-22 16:00 +0200
Re: Permission issues - operator error? Richard Owlett <rowlett@cloud85.net> - 2018-09-22 16:30 +0200
Re: Permission issues - operator error? David Christensen <dpchrist@holgerdanske.com> - 2018-09-22 22:50 +0200
Re: Permission issues - operator error? Richard Owlett <rowlett@cloud85.net> - 2018-09-23 02:40 +0200
Re: Permission issues - operator error? David Christensen <dpchrist@holgerdanske.com> - 2018-09-23 05:00 +0200
Re: Permission issues - operator error? Richard Owlett <rowlett@cloud85.net> - 2018-09-23 11:30 +0200
Re: Permission issues - operator error? Richard Owlett <rowlett@cloud85.net> - 2018-09-23 15:30 +0200
Re: Permission issues - operator error? Tom Furie <tom@furie.org.uk> - 2018-09-23 15:50 +0200
Re: Permission issues - operator error? Richard Owlett <rowlett@cloud85.net> - 2018-09-23 16:20 +0200
Re: Permission issues - operator error? Andy Smith <andy@strugglers.net> - 2018-09-23 17:40 +0200
Re: Permission issues - operator error? Richard Owlett <rowlett@cloud85.net> - 2018-09-23 20:20 +0200
Re: Permission issues - operator error? David Christensen <dpchrist@holgerdanske.com> - 2018-09-23 20:40 +0200
Re: Permission issues - operator error? David Christensen <dpchrist@holgerdanske.com> - 2018-09-23 20:40 +0200
Re: Permission issues - operator error? David Christensen <dpchrist@holgerdanske.com> - 2018-09-24 03:40 +0200
Re: Permission issues - operator error? Andy Smith <andy@strugglers.net> - 2018-09-23 21:10 +0200
Re: Permission issues - operator error? Richard Hector <richard@walnut.gen.nz> - 2018-09-24 05:10 +0200
Underlying problems - was [Re: Permission issues - operator error?] Richard Owlett <rowlett@cloud85.net> - 2018-09-24 18:40 +0200
csiph-web